const Mock = require('mockjs');

// 列表
Mock.mock('/system/testFieldList', 'get', {
    "success": true,
    "message": "success",
    "code": 200,
    "timestamp": 1535082178117,
    "result": {
    "content": [{
        "id": "16739222421508096",
        "createBy": "",
        "createTime": "2018-06-06 18:48:02",
        "updateBy": "",
        "updateTime": "2018-06-06 18:57:55",
        "delFlag": 0,
        "field_name": "F001",
        "test_type": "001",
        "standrad": ">=64 HRA",
        "test_part": "XXX",
        "standrad_type": "1",
        "standrad_name": "HRA",
        "col1": "100",
        "condition": "xxx",
        "col2": "200",
        "unit":"XXX",
        "decimal_point":"0.001",
        "remark":"XXX"
        },
        {
            "id": "16739222421508096",
            "createBy": "",
            "createTime": "2018-06-06 18:48:02",
            "updateBy": "",
            "updateTime": "2018-06-06 18:57:55",
            "delFlag": 0,
            "field_name": "F002",
            "test_type": "002",
            "standrad": ">=64 HRA",
            "test_part": "XXX",
            "standrad_type": "1",
            "standrad_name": "HRA",
            "col1": "100",
            "condition": "xxx",
            "col2": "200",
            "unit":"XXX",
            "decimal_point":"0.001",
            "remark":"XXX"
            }
    ],
    "pageable": {
        "offset": 0,
        "pageSize": 10,
        "pageNumber": 0,
    },
    "totalElements": 4, 
    "totalPages": 1,
    "size": 10, 
    }
  });

//   保存
Mock.mock('system/saveTestField', 'post', {
    "success": true,
    "message": "success",
    "code": 200,
    "timestamp": 1535167163850
  });